﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200115F RID: 4447
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetGenderScRsp : IMessage<SetGenderScRsp>, IMessage, IEquatable<SetGenderScRsp>, IDeepCloneable<SetGenderScRsp>, IBufferMessage
	{
		// Token: 0x17003846 RID: 14406
		// (get) Token: 0x0600C703 RID: 50947 RVA: 0x00218EDF File Offset: 0x002170DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetGenderScRsp> Parser
		{
			get
			{
				return SetGenderScRsp._parser;
			}
		}

		// Token: 0x17003847 RID: 14407
		// (get) Token: 0x0600C704 RID: 50948 RVA: 0x00218EE6 File Offset: 0x002170E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetGenderScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003848 RID: 14408
		// (get) Token: 0x0600C705 RID: 50949 RVA: 0x00218EF8 File Offset: 0x002170F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetGenderScRsp.Descriptor;
			}
		}

		// Token: 0x0600C706 RID: 50950 RVA: 0x00218EFF File Offset: 0x002170FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGenderScRsp()
		{
		}

		// Token: 0x0600C707 RID: 50951 RVA: 0x00218F14 File Offset: 0x00217114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGenderScRsp(SetGenderScRsp other) : this()
		{
			this.curAvatarPathInfoList_ = other.curAvatarPathInfoList_.Clone();
			this.curAvatarPath_ = other.curAvatarPath_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C708 RID: 50952 RVA: 0x00218F61 File Offset: 0x00217161
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGenderScRsp Clone()
		{
			return new SetGenderScRsp(this);
		}

		// Token: 0x17003849 RID: 14409
		// (get) Token: 0x0600C709 RID: 50953 RVA: 0x00218F69 File Offset: 0x00217169
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MultiPathAvatarInfo> CurAvatarPathInfoList
		{
			get
			{
				return this.curAvatarPathInfoList_;
			}
		}

		// Token: 0x1700384A RID: 14410
		// (get) Token: 0x0600C70A RID: 50954 RVA: 0x00218F71 File Offset: 0x00217171
		// (set) Token: 0x0600C70B RID: 50955 RVA: 0x00218F79 File Offset: 0x00217179
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiPathAvatarType CurAvatarPath
		{
			get
			{
				return this.curAvatarPath_;
			}
			set
			{
				this.curAvatarPath_ = value;
			}
		}

		// Token: 0x1700384B RID: 14411
		// (get) Token: 0x0600C70C RID: 50956 RVA: 0x00218F82 File Offset: 0x00217182
		// (set) Token: 0x0600C70D RID: 50957 RVA: 0x00218F8A File Offset: 0x0021718A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C70E RID: 50958 RVA: 0x00218F93 File Offset: 0x00217193
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetGenderScRsp);
		}

		// Token: 0x0600C70F RID: 50959 RVA: 0x00218FA4 File Offset: 0x002171A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetGenderScRsp other)
		{
			return other != null && (other == this || (this.curAvatarPathInfoList_.Equals(other.curAvatarPathInfoList_) && this.CurAvatarPath == other.CurAvatarPath && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C710 RID: 50960 RVA: 0x00219004 File Offset: 0x00217204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.curAvatarPathInfoList_.GetHashCode();
			if (this.CurAvatarPath != MultiPathAvatarType.None)
			{
				num ^= this.CurAvatarPath.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C711 RID: 50961 RVA: 0x00219070 File Offset: 0x00217270
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C712 RID: 50962 RVA: 0x00219078 File Offset: 0x00217278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C713 RID: 50963 RVA: 0x00219084 File Offset: 0x00217284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.CurAvatarPath != MultiPathAvatarType.None)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.CurAvatarPath);
			}
			this.curAvatarPathInfoList_.WriteTo(ref output, SetGenderScRsp._repeated_curAvatarPathInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C714 RID: 50964 RVA: 0x002190F0 File Offset: 0x002172F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.curAvatarPathInfoList_.CalculateSize(SetGenderScRsp._repeated_curAvatarPathInfoList_codec);
			if (this.CurAvatarPath != MultiPathAvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.CurAvatarPath);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C715 RID: 50965 RVA: 0x0021915C File Offset: 0x0021735C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetGenderScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.curAvatarPathInfoList_.Add(other.curAvatarPathInfoList_);
			if (other.CurAvatarPath != MultiPathAvatarType.None)
			{
				this.CurAvatarPath = other.CurAvatarPath;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C716 RID: 50966 RVA: 0x002191BD File Offset: 0x002173BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C717 RID: 50967 RVA: 0x002191C8 File Offset: 0x002173C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 32U)
					{
						if (num != 98U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.curAvatarPathInfoList_.AddEntriesFrom(ref input, SetGenderScRsp._repeated_curAvatarPathInfoList_codec);
						}
					}
					else
					{
						this.CurAvatarPath = (MultiPathAvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005004 RID: 20484
		private static readonly MessageParser<SetGenderScRsp> _parser = new MessageParser<SetGenderScRsp>(() => new SetGenderScRsp());

		// Token: 0x04005005 RID: 20485
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005006 RID: 20486
		public const int CurAvatarPathInfoListFieldNumber = 12;

		// Token: 0x04005007 RID: 20487
		private static readonly FieldCodec<MultiPathAvatarInfo> _repeated_curAvatarPathInfoList_codec = FieldCodec.ForMessage<MultiPathAvatarInfo>(98U, MultiPathAvatarInfo.Parser);

		// Token: 0x04005008 RID: 20488
		private readonly RepeatedField<MultiPathAvatarInfo> curAvatarPathInfoList_ = new RepeatedField<MultiPathAvatarInfo>();

		// Token: 0x04005009 RID: 20489
		public const int CurAvatarPathFieldNumber = 4;

		// Token: 0x0400500A RID: 20490
		private MultiPathAvatarType curAvatarPath_;

		// Token: 0x0400500B RID: 20491
		public const int RetcodeFieldNumber = 1;

		// Token: 0x0400500C RID: 20492
		private uint retcode_;
	}
}
